import { FormRule } from 'tdesign-vue-next';

import { t } from '@/locales';

export const FORM_DATA = {
  username: '',
  password: '',
  code: '',
};

export const FORM_RULES: Record<string, FormRule[]> = {
  username: [{ required: true, message: t('pages.login.input.username'), type: 'error' }],
  password: [{ required: true, message: t('pages.login.input.password'), type: 'error' }],
  code: [{ required: true, message: t('pages.login.input.verification'), type: 'error' }],
};
